package com.org.web.api.unishop;

import com.org.platform.model.ResultModel;
import com.org.web.api.unishop.service.CategoryService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duheng
 * @Date 2021/10/13 14:51
 */
@RestController
public class MobileShopCategoryController {

	@Autowired
	private CategoryService categoryService;

	@RequestMapping(value = {"/mobile/unishop/getCategory"})
	public ResultModel getCategory() {
		List<Map<String, Object>> result = categoryService.getCategoryList();
		return ResultModel.newSuccess(result);
	}
}
